package org.example;
//javac -encoding UTF-8 HttpStatusEnum.java
//javap -p HttpStatusEnum.class
public enum HttpStatusEnum implements EnumInf{
    OK(200,"OK"),
    NOT_FOUND(404,"NOT_FOUND");

    private final int code;
    private final String status;

    HttpStatusEnum(int code, String status){
        this.code = code;
        this.status = status;
    }

    public int getCode() {
        return code;
    }

    public String getStatus() {
        return status;
    }

    @Override
    public void show() {
        System.out.println("来吧展示..");
    }
}
